翻訳と辞書
Words near each other
・ Pointel
・ Pointer
・ Pointer (computer programming)
・ Pointer (dog breed)
・ Pointer (graphical user interfaces)
・ Pointer (journal)
・ Pointer (rod)
・ Pointer (wireless phone)
・ Pointer aliasing
・ Pointer analysis
・ Pointer boat
・ Pointer jumping
・ Pointer machine
・ Pointer Nunatak
・ Pointer state
Pointer swizzling
・ Pointer Telocation
・ Pointer Williams
・ Pointers Airport
・ Pointers Landing, Virginia
・ Pointers, New Jersey
・ PointerWare
・ Pointes de Mourti
・ Pointes du Châtelard
・ Pointes et aiguille de l'Épéna
・ Pointfest
・ Pointfield
・ Pointillism
・ Pointillé
・ Pointing


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Pointer swizzling : ウィキペディア英語版
Pointer swizzling

In computer science, pointer swizzling is the conversion of references based on name or position to direct pointer references. It is typically performed during the deserialization (loading) of a relocatable object from disk, such as an executable file or pointer-based data structure. The reverse operation, replacing pointers with position-independent symbols or positions, is sometimes referred to as unswizzling, and is performed during serialization (saving).
== Examples ==

For example, suppose we have the following linked list data structure:

struct node ;

We can easily create a linked list data structure in memory using such an object, but when we attempt to save it to disk we run into trouble. Directly saving the pointer values won't work on most architectures, because the nodes will almost certainly be loaded into different memory positions. One way of dealing with this is to assign a unique id number to each node and then ''unswizzle'' the pointers by turning them into a field indicating the id number of the next node:

struct node_saved ;

We can save these records to disk in any order, and no information will be lost. Other options include saving the file offset of the next node or a number indicating its position in the sequence of saved records.
When we go to load these nodes, however, we quickly discover that attempting to find a node based on its number is cumbersome and inefficient. We'd like our original data structure back so we can simply follow next pointers to traverse the list. To do this, we perform ''pointer swizzling'', finding the address of each node and turning the ''id_number_of_next_node'' fields back into direct pointers to the right node.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Pointer swizzling」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.